<template>
 <div class="box" v-if="flag">
  <h2>就诊详细信息</h2>
  <p>就诊时间：{{utime}}</p>
  <p>医生姓名：{{doctor}}</p>
  <p>诊断结果：{{results}}</p>
  <p>处方信息：{{medicine}}</p>
 </div>
</template>

<script>
 export default {
  name:'MyAlert',
  props:['flag','utime','doctor','results','medicine']
 }
</script>

<style scoped lang='less'>
.box{
  position: fixed;
  left: 50%;
  top: 25%;
  background-color: #ccc;
  padding:0 20px;
}
</style>